import os
import uvicorn

from fastapi import FastAPI

from apps.api import api_router
from common.core.config import settings

app = FastAPI(
    title=settings.PROJECT_NAME,
    openapi_url=f"{settings.API_V1_STR}/openapi.json",
    # generate_unique_id_function=custom_generate_unique_id,
    # lifespan=lifespan
)
app.include_router(api_router, prefix=settings.API_V1_STR) 

if __name__ == "__main__":
    uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)